package com.johnson.news.model.bean;

import com.youmbe.library.data.BaseData;

public class SearchResult extends BaseData {

	
	String itemid;
	String catid;
	String mid;
	String title;
	String addtime;
	
	public String getItemid() {
		return itemid;
	}
	public void setItemid(String itemid) {
		this.itemid = itemid;
	}
	public String getCatid() {
		return catid;
	}
	public void setCatid(String catid) {
		this.catid = catid;
	}
	public String getMid() {
		return mid;
	}
	public void setMid(String mid) {
		this.mid = mid;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getAddtime() {
		return addtime;
	}
	public void setAddtime(String addtime) {
		this.addtime = addtime;
	}
	@Override
	public String toString() {
		return "SearchResult [itemid=" + itemid + ", catid=" + catid + ", mid="
				+ mid + ", title=" + title + ", addtime=" + addtime + "]";
	}
	
	public NewsItem toNewsItem() {
		NewsItem item = new NewsItem();
		item.itemid = itemid;
		item.catid = catid;
		item.title = title;
		item.mid = mid;
		return item;
	}
	
}
